package com.cfgj.entity;

/*
* 众筹
* */

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

@TableName("crowd_funding")
public class CrowdFunding {
    @TableId(type = IdType.AUTO)//解决封装id为BigInteger类型
    private Integer id;
    @TableField(value = "userId",fill = FieldFill.UPDATE)
    private Integer userId;
    private String name;
    private Double money;
    private String projectname;     //项目名称
    private String faceto;          //面向群体
    @TableField(value = "imgPath",fill = FieldFill.UPDATE)
    private String imgPath;
    private Date starttime;     //开始时间
    private Double nowmoney;
    private Date endtime;       //结束时间
    private String projectabstract;     //项目简介
    @TableField(value = "createtime",fill = FieldFill.INSERT)
    private Date createtime;
    private String edit;
    private Integer status;


    public CrowdFunding(Integer id, Integer userId, String name, Double money, String projectname, String faceto, String imgPath, Date starttime, Double nowmoney, Date endtime, String projectabstract, Date createtime, String edit, Integer status) {
        this.id = id;
        this.userId = userId;
        this.name = name;
        this.money = money;
        this.projectname = projectname;
        this.faceto = faceto;
        this.imgPath = imgPath;
        this.starttime = starttime;
        this.nowmoney = nowmoney;
        this.endtime = endtime;
        this.projectabstract = projectabstract;
        this.createtime = createtime;
        this.edit = edit;
        this.status = status;
    }

    public CrowdFunding() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getProjectname() {
        return projectname;
    }

    public void setProjectname(String projectname) {
        this.projectname = projectname;
    }

    public String getFaceto() {
        return faceto;
    }

    public void setFaceto(String faceto) {
        this.faceto = faceto;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Double getNowmoney() {
        return nowmoney;
    }

    public void setNowmoney(Double nowmoney) {
        this.nowmoney = nowmoney;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getProjectabstract() {
        return projectabstract;
    }

    public void setProjectabstract(String projectabstract) {
        this.projectabstract = projectabstract;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getEdit() {
        return edit;
    }

    public void setEdit(String edit) {
        this.edit = edit;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "CrowdFunding{" +
                "id=" + id +
                ", userId=" + userId +
                ", name='" + name + '\'' +
                ", money=" + money +
                ", projectname='" + projectname + '\'' +
                ", faceto='" + faceto + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", starttime=" + starttime +
                ", nowmoney=" + nowmoney +
                ", endtime=" + endtime +
                ", projectabstract='" + projectabstract + '\'' +
                ", createtime=" + createtime +
                ", edit='" + edit + '\'' +
                ", status=" + status +
                '}';
    }
}
